﻿<UserControl x:Class="Scrabble.Views.SearchOptionsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" MinHeight="100"
             mc:Ignorable="d" 
             d:DesignHeight="300" IsTabStop="false">
    <Border BorderThickness="1" BorderBrush="{DynamicResource  {x:Static SystemColors.ActiveBorderBrushKey}}">
        <Border.Background>
            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                <GradientStop Color="Gainsboro" Offset="0"/>
                <GradientStop Color="White" Offset="0.15"/>
            </LinearGradientBrush>
        </Border.Background>
        <StackPanel Margin="4">
            <StackPanel.Resources>
                <Style TargetType="RadioButton">
                    <Setter Property="Margin" Value="2" />
                </Style>
            </StackPanel.Resources>
            <TextBlock Text="Find Words:" Foreground="Gray" />
            <RadioButton IsChecked="{Binding UseTextAsPrefix}" Content="Starting with text" />
            <RadioButton IsChecked="{Binding UseTextAsSetOfLetters}" Content="Containing all letters" />
            <Border Background="AliceBlue" Margin="4,3,4,0" BorderThickness="1" BorderBrush="LightBlue" SnapsToDevicePixels="true">
                <TextBlock HorizontalAlignment="Center" FontStyle="Italic" Padding="3" TextWrapping="Wrap">Use '?' as a wildcard</TextBlock>
            </Border>
        </StackPanel>
    </Border>
</UserControl>
